package com.small.base.qiniu.exce;

/**
 * SmallQiniuException
 *
 * @author miajio
 */
public class SmallQiniuException extends RuntimeException {

    private Integer code;

    private String msg;

    public SmallQiniuException(SmallQiniuExceptionEnum bucketNameIsEmpty) {
        super(bucketNameIsEmpty.getMsg());
        this.code = bucketNameIsEmpty.getCode();
        this.msg = bucketNameIsEmpty.getMsg();
    }

    public SmallQiniuException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public SmallQiniuException() {
        super();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
